package com.kehongborui.spring.entity;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * @author zhang peng yang ming
 * @CopyRight (C) http://www.csdn.com
 * @brief
 * @email 122162005@qq.com
 * @date 2018-07-30
 */
public class ComplexObject {
    private Properties adminEmails;
    private List someList;
    private Map someMap;
    private Set someSet;

    public Properties getAdminEmails() {
        return adminEmails;
    }

    public void setAdminEmails(Properties adminEmails) {
        System.out.println("adminEmails:");
        Set set = adminEmails.keySet();
        for (Object key : set) {
            System.out.println(key + " : " + adminEmails.get(key));
        }
        System.out.println("========================");
        this.adminEmails = adminEmails;
    }

    public List getSomeList() {
        return someList;
    }

    public void setSomeList(List someList) {
        System.out.println("someList:");
        for (Object key : someList) {
            System.out.println(key);
        }
        System.out.println("========================");
        this.someList = someList;
    }

    public Map getSomeMap() {
        return someMap;
    }

    public void setSomeMap(Map someMap) {
        System.out.println("someMap:");
        Set<Map.Entry> set = someMap.entrySet();
        for (Map.Entry entry : set) {
            System.out.println(entry.getKey() + " : " + entry.getValue());
        }
        System.out.println("========================");
        this.someMap = someMap;
    }

    public Set getSomeSet() {
        return someSet;
    }

    public void setSomeSet(Set someSet) {
        System.out.println("someSet:");
        for (Object set : someSet) {
            System.out.println(set);
        }
        System.out.println("========================");
        this.someSet = someSet;
    }
}
